package com.cskaoyan.service;

import com.cskaoyan.dao.UserDao;
import com.cskaoyan.dao.UserDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @author stone
 * @date 2022/06/16 10:18
 */
// 组件id默认值是orderServiceImpl
@Component
public class OrderServiceImpl implements OrderService{

    UserDao userDao; // = new UserDaoImpl();

    @Autowired
    public void setUserDao(@Qualifier("userDaoImpl") UserDao userDao) {
        this.userDao = userDao;
    }
}
